using GameStore.Api.Dtos;

namespace GameStore.Api.Entities;

public static class EntityExtensions
{
    public static GameDto AsDto(this Game game)
    {
        return new GameDto(game.Id,
                           game.Name,
                           game.Genre,
                           game.Price + 10,
                           game.ReleaseDate,
                           game.ImageUri);

    }
}